/* Website Page Builder — admin modal */

.website-builder-modal .iyzi-modal-content
{
    max-width: 96vw;
    width: 96vw;
    height: 92vh;
    min-height: 600px;
}

.website-builder-wrap
{
    display: flex;
    flex-direction: column;
    height: calc(92vh - 80px);
    min-height: 520px;
    overflow: hidden;
}

.website-builder-header
{
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.website-builder-tabs
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-tabs > div
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-tabs .tab-nav-wrapper
{
    flex-shrink: 0;
}

.website-builder-tabs .tab-content
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.website-builder-tabs .tab-content > .tab-pane
{
    min-height: 0 !important;
    flex: 1 1 auto;
    display: none !important;
    flex-direction: column;
    overflow: hidden;
    padding-top: 10px !important;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.website-builder-tabs .tab-content > .tab-pane.active
{
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    inset: auto;
    opacity: 1;
}

/* Sayfa yapisi — 3 sutun: bileşenler | agac | ayarlar */
.website-builder-grid-yapi
{
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.website-builder-panel
{
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--bg-light, #f8fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 10px;
}

.website-builder-panel-title
{
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #7f8c8d);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.website-builder-palet
{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.website-builder-palet-section
{
    margin-bottom: 10px;
}

.website-builder-palet-title
{
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #95a5a6);
    margin-bottom: 6px;
}

.website-builder-palet-item
{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 4px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.website-builder-palet-item:hover
{
    border-color: var(--primary, #1780c1);
    background: rgba(23, 128, 193, 0.06);
}

.website-builder-palet-item i
{
    font-size: 16px;
    color: var(--primary, #1780c1);
}

.website-builder-tree
{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.website-builder-tree-empty
{
    font-size: 13px;
    padding: 8px 4px;
}

.website-builder-tree-list
{
    list-style: none;
    margin: 0;
    padding: 0;
}

.website-builder-tree-list .website-builder-tree-list
{
    margin-left: 14px;
    padding-left: 8px;
    border-left: 2px solid var(--border-color, #e5e7eb);
}

.website-builder-tree-item
{
    margin-bottom: 4px;
}

.website-builder-tree-item.is-selected > .website-builder-tree-item-head
{
    background: rgba(23, 128, 193, 0.12);
    border-color: var(--primary, #1780c1);
}

.website-builder-tree-item.website-builder-tree-item-flash > .website-builder-tree-item-head
{
    animation: website-builder-tree-flash 1.2s ease;
}

@keyframes website-builder-tree-flash
{
    0%
    {
        box-shadow: 0 0 0 0 rgba(23, 128, 193, 0.55);
    }

    40%
    {
        box-shadow: 0 0 0 4px rgba(23, 128, 193, 0.35);
    }

    100%
    {
        box-shadow: 0 0 0 0 rgba(23, 128, 193, 0);
    }
}

.website-builder-tree-item-head
{
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
}

.website-builder-tree-drag
{
    cursor: grab;
    color: var(--text-muted, #95a5a6);
    padding: 2px 4px;
    flex-shrink: 0;
}

.website-builder-tree-select
{
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 12px;
    padding: 2px 4px;
    cursor: pointer;
    min-width: 0;
}

.website-builder-tree-select span
{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-builder-tree-delete
{
    flex-shrink: 0;
    padding: 2px 6px;
}

/* Onizleme tab — tam genislik */
.website-builder-preview-tab
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-preview-wrap
{
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
}

.website-builder-preview-wrap-full
{
    flex: 1;
    min-height: 0;
    height: 100%;
}

.website-builder-preview-iframe
{
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.website-builder-settings
{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.website-builder-settings .form-label
{
    font-size: 12px;
    font-weight: 600;
}

/* Onizleme iframe ic */
.website-pb-preview-node
{
    position: relative;
    cursor: pointer;
}

.website-pb-preview-hover
{
    outline: 2px dashed rgba(23, 128, 193, 0.7);
    outline-offset: 2px;
}

.website-pb-preview-selected
{
    outline: 2px solid var(--website-primary, #1780c1);
    outline-offset: 2px;
}

.website-pb-hero1
{
    position: relative;
}

.website-pb-hero1::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.website-pb-hero1 .container
{
    position: relative;
    z-index: 1;
}

.website-pb-carousel-img
{
    object-fit: cover;
    max-height: 420px;
    aspect-ratio: 21 / 9;
}

.website-pb-swiper
{
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 991px)
{
    .website-builder-grid-yapi
    {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        overflow-y: auto;
    }

    .website-builder-panel-palet,
    .website-builder-panel-tree
    {
        max-height: 180px;
    }

    .website-builder-wrap
    {
        height: auto;
        min-height: 70vh;
    }
}
